STEP 14: Nice! Now our loop runs a goal-shooting simulation. Let's display our data.

We need to first create a range list in which we have all possible options for what our data could be.

  • In SUBJECT, go to and drag in Range List OUTSIDE your loop (no indentation!).
  • Change the values inside the list's brackets so it looks like this: ["Missed", "Made"].

Those are the only two options each time the ball is kicked. Next, we'll see how many times each option happened!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)